@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(-50px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 500px;
  }
}

.todo {
  animation: fade 0.8s ease-out;
  background-color: #ffffff;
  min-height: 50px;
  margin-bottom: 40px;
  border-radius: 8px;
  position: relative;
  padding-bottom: 70px;
}

.todo h1 {
  margin: 0;
  border-bottom: solid 0.5px #f5f5f5;
  height: 50px;
  line-height: 50px;
  padding: 0 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: medium;
  transition: all 0.3s;
}

.todo time {
  float: right;
  padding: 10px 20px;
  color: #777;
  font-size: small;
}

.todo p {
  padding: 20px;
}

.todo button {
  border: none;
  outline: none;
  width: 30%;
  height: 30px;
  position: absolute;
  bottom: 20px;
  right: 20px;
  border-radius: 15px;
  color: #fff;
  transition: all 0.3s;
}
.todo button:hover {
  filter: brightness(0.9);
}

.todo-finished {
  color: #777;  
}
.todo-finished button {
  background-color: #ddd;
  color: #000;
  cursor: not-allowed;
}

.todo-unfinished {
  color: black;
}
.todo-unfinished button {
  background-color: #00cc47;
  cursor: pointer;
}

